import request from '@/utils/request'

// 查询审核信息列表
export function listExamine(query) {
  return request({
    url: '/mentor/examine/list',
    method: 'get',
    params: query
  })
}

// 查询审核信息详细
export function getExamine(id) {
  return request({
    url: '/mentor/examine/' + id,
    method: 'get'
  })
}

// 新增审核信息
export function addExamine(data) {
  return request({
    url: '/mentor/examine',
    method: 'post',
    data: data
  })
}

// 修改审核信息
export function updateExamine(data) {
  return request({
    url: '/mentor/examine',
    method: 'put',
    data: data
  })
}

// 删除审核信息
export function delExamine(id) {
  return request({
    url: '/mentor/examine/' + id,
    method: 'delete'
  })
}

// 导出审核信息
export function exportExamine(query) {
  return request({
    url: '/mentor/examine/export',
    method: 'get',
    params: query
  })
}


// 根据用户类型获取审核信息
export function getExamineMsg(type,id) {
  return request({
    url: '/mentor/examine/getExamineMsg',
    method: 'get',
    params: {type,id}
  })
}
